package com.platform.hjt.sys.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * SysCompanyModelId entity. @author MyEclipse Persistence Tools
 */
@Embeddable
public class SysCompanyModelId implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7862763044980597201L;
	private String sysModelId;
	private String sysCompanyInfo;

	// Constructors

	/** default constructor */
	public SysCompanyModelId() {
	}

	/** full constructor */
	public SysCompanyModelId(String sysModelId, String sysCompanyInfo) {
		this.sysModelId = sysModelId;
		this.sysCompanyInfo = sysCompanyInfo;
	}

	// Property accessors

	@Column(name = "sys_model_id", length = 32)
	public String getSysModelId() {
		return this.sysModelId;
	}

	public void setSysModelId(String sysModelId) {
		this.sysModelId = sysModelId;
	}

	@Column(name = "sys_company_info", length = 32)
	public String getSysCompanyInfo() {
		return this.sysCompanyInfo;
	}

	public void setSysCompanyInfo(String sysCompanyInfo) {
		this.sysCompanyInfo = sysCompanyInfo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysCompanyModelId))
			return false;
		SysCompanyModelId castOther = (SysCompanyModelId) other;

		return ((this.getSysModelId() == castOther.getSysModelId()) || (this
				.getSysModelId() != null && castOther.getSysModelId() != null && this
				.getSysModelId().equals(castOther.getSysModelId())))
				&& ((this.getSysCompanyInfo() == castOther.getSysCompanyInfo()) || (this
						.getSysCompanyInfo() != null
						&& castOther.getSysCompanyInfo() != null && this
						.getSysCompanyInfo().equals(
								castOther.getSysCompanyInfo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSysModelId() == null ? 0 : this.getSysModelId()
						.hashCode());
		result = 37
				* result
				+ (getSysCompanyInfo() == null ? 0 : this.getSysCompanyInfo()
						.hashCode());
		return result;
	}

}